package api

import (
	__ "api-gateway/basic/goods_proto"
	"api-gateway/basic/inits"
	"api-gateway/handler/response"
	"github.com/gin-gonic/gin"
)

// CarouselDetail
// @Summary      轮播图
// @Description  轮播图
// @Tags         图模块
// @Accept       json
// @Produce      json
// @Success      200  {object}  response.Response
// @Failure      400   {object}  response.Response
// @Router       /carousel/carouselDetail [get]
func CarouselDetail(c *gin.Context) {
	carousel, err := inits.GoodsClient.Carousel(c, &__.CarouselReq{})
	if err != nil {
		response.Error(c, 500, "查询失败", err.Error())
		return
	}
	response.Success(c, "查询成功", carousel)
}
